<?php $this->headScript()->appendFile($this->JS_PATH . 'hardware.js'); ?>
<?php $this->headScript()->appendFile($this->JS_PATH . 'bootstrap.datepicker.js'); ?>

<div id="hardware-listing"></div>
<div class="container-fluid">
<div id="pad-wrapper" class="form-page">
    <div class="row-fluid form-wrapper">
        <!-- left column -->
        <div class="span column">

            <?php if ($this->successmessage != ''): ?>
                <div class="alert alert-success">
                    <i class="icon-ok-sign"></i> <?php echo $this->successmessage; ?>
                </div>
            <?php endif; ?>
            <?php if (count($this->errorMessageArray) > 0): ?>
                <div class="alert alert-error">
                    <?php foreach ($this->errorMessageArray as $erroValue): ?>

                        <div class="text-left">
                            <i class="icon-remove-sign"></i>
                            <?php echo $erroValue; ?>
                        </div>
                    <?php endforeach; ?>
                </div>
            <?php endif; ?>
            <h3><?php echo $this->mode;?> <?php echo $this->translate("hardware_header"); ?></h3>
             <br />
            <form role="form"  id="hardware-form" name="hardware-form"  enctype="multipart/form-data"  action="" method="post">
                <div class="field-box">
                    <label><?php echo $this->translate("hard_frm_name"); ?><span class="error-star">*</span>:</label>
                    <?php echo $this->form->hard_name; ?>
                </div>

<div class="field-box">
                        <label><?php echo $this->translate("hardware_frm_image"); ?>:</label>
                        <?php 
                        if ($this->imageName != ""): ?>
                        <?php if(file_exists($this->UPLOAD_PATH."hardware/" . $this->imageName)):?> 
                        <?php 
                                $src_path = $this->PUBLIC_PATH . "upload/hardware/".$this->imageName; 
                        ?>
                        <img src="<?php echo $src_path; ?>" height="200" width="200"/>&nbsp;
                        <br>
                            <?php endif; ?>
                            <?php endif; ?>
                        <input type="file" name="hard_image" id="hard_image">  
                   
                    </div>
                
                
                
                <div class="field-box">
                    <label><?php echo $this->translate("hard_frm_build"); ?><span class="error-star">*</span>:</label>
                        <?php echo $this->form->build_id; ?>
                </div>
                
                <div class="field-box">
                    <label><?php echo $this->translate("hard_frm_serial"); ?><span class="error-star">*</span>:</label>
                    <?php echo $this->form->hard_serial; ?>
                </div>
                
              
                
                <div class="field-box">
                    <label><?php echo $this->translate("hard_frm_exp_date"); ?><span class="error-star">*</span>:</label>
                    <?php echo $this->form->hard_exp_date; ?>
                </div>
                
               <div class="field-box">
                    <label><?php echo $this->translate("hard_frm_location"); ?><span class="error-star">*</span>:</label>
                    <?php echo $this->form->hard_location; ?>
                </div>
                
                <div class="field-box">
                    <label><?php echo $this->translate("hard_frm_status"); ?><span class="error-star">*</span>:</label>
                    <div class="ui-select">
                    <?php echo $this->form->hard_status; ?>
                    </div> 
                </div>
                <br>

                
                <div class="field-box">
                    <?php echo $this->form->Save; ?>
                    <?php echo $this->form->Reset; ?> 
                </div>



            </form>
        </div>
    </div>
</div>
</div>


    